package com.weixinli.beans;

import java.io.Serializable;

public class UserGet implements Serializable{
	private int w_uid;//用户编号
	private String gid;//收藏内容的编号
	private int area_id;//(文章为1  音频为2  微笑墙3 微心情 4)
	private static final long serialVersionUID = 1L;
	
	@Override
	public String toString() {
		return "UserGet [w_uid=" + w_uid + ", gid=" + gid + ", area_id="
				+ area_id + "]";
	}

	public int getW_uid() {
		return w_uid;
	}

	public void setW_uid(int w_uid) {
		this.w_uid = w_uid;
	}

	public String getGid() {
		return gid;
	}

	public void setGid(String gid) {
		this.gid = gid;
	}

	public int getArea_id() {
		return area_id;
	}

	public void setArea_id(int area_id) {
		this.area_id = area_id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + area_id;
		result = prime * result + ((gid == null) ? 0 : gid.hashCode());
		result = prime * result + w_uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserGet other = (UserGet) obj;
		if (area_id != other.area_id)
			return false;
		if (gid == null) {
			if (other.gid != null)
				return false;
		} else if (!gid.equals(other.gid))
			return false;
		if (w_uid != other.w_uid)
			return false;
		return true;
	}

	public UserGet(int w_uid, String gid, int area_id) {
		super();
		this.w_uid = w_uid;
		this.gid = gid;
		this.area_id = area_id;
	}

	public UserGet() {
		super();
	}
	
	
}
